home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>1</cardCount>
- <cardID>2871</cardID>
- <listID>2240</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on parseStack
- global holdMyPlace, theTargetStack, theTextFile, theTextDump, ¬
- theScript, theLeadSpace, theTargetBkgd
- go to theTargetStack
- put the script of this stack into theScript
- put the number of backgrounds into theBkgdCnt
- write return & " -> # of cards:" ¬
- & the number of cards in this stack ¬
- & " # of backgrounds:" & theBkgdCnt ¬
- to file theTextFile
- write return & " size:" & the size of this stack ¬
- & " freespace:" & the freeSize of this stack ¬
- to file theTextFile
- write return & " cantModify:" & the cantModify of this stack ¬
- & " cantPeek:" & the cantPeek of this stack ¬
- & " cantAbort:" & the cantAbort of this stack ¬
- & return to file theTextFile
- put " number of backgrounds = " & theBkgdCnt ¬
- & " number of cards = " & the number of cards in this stack ¬
- into statusLine
- go to holdMyPlace
- put return & statusLine & return after card field "statusField"
- put return & " analyzing the stack script..." & return after ¬
- card field "statusField"
- scrollField
- unlock screen
- lock screen
- write return & " -> Stack Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put " " into theLeadSpace
- parseScript
- repeat with i = 1 to theBkgdCnt
- go to holdMyPlace
- put return & " analyzing background #" & i & "..." & return ¬
- after card field "statusField"
- scrollField
- unlock screen
- lock screen
- write return & " ** BACKGROUND #" & i & " **" ¬
- & return & return to file theTextFile
- go to theTargetStack
- put the ID of background i into theTargetBkgd
- parseBkgd
- end repeat
- end parseStack
-
- on parseBkgd
- global holdMyPlace, theTargetStack, theTextFile, theTextDump, ¬
- theScript, theLeadSpace, theTargetBkgd, theTargetField, ¬
- theTargetButton
- go to card 1 of background ID theTargetBkgd
- put the number of cards in this background into cardCounter
- write " -> # of cards:" & cardCounter ¬
- & " # of fields:" & the number of background fields ¬
- & " # of buttons:" & the number of background buttons ¬
- & return to file theTextFile
- put " # of fields = " & the number of background fields ¬
- & " # of buttons = " & the number of background buttons ¬
- & " # of cards = " & cardCounter ¬
- & return & " analyzing the background script..." into statusLine
- push card
- go to holdMyPlace
- put statusLine after card field "statusField"
- scrollField
- unlock screen
- lock screen
- pop card
- write return & " -> Background Properties:" ¬
- & return to file theTextFile
- write " id:" & theTargetBkgd & ¬
- " name:" & the short name of this background & return ¬
- to file theTextFile
- write " don'tSearch:" & the dontSearch of this background & ¬
- " cantDelete:" & the cantDelete of this background & return ¬
- to file theTextFile
- write return & " -> Background Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put the script of this background into theScript
- if theScript = empty then
- write " -none-" & return to file theTextFile
- else
- put " " into theLeadSpace
- parseScript
- end if
- write return & " -> Background Fields:" ¬
- & return to file theTextFile
- put return & " analyzing the background fields..." ¬
- & return into statusLine
- push card
- go to holdMyPlace
- put statusLine after card field "statusField"
- scrollField
- unlock screen
- lock screen
- pop card
- repeat with i = 1 to number of background fields
- put the ID of background field i into theTargetField
- parseBkgdFld
- end repeat
- write return to file theTextFile
- write return & " -> Background Buttons:" ¬
- & return to file theTextFile
- put " analyzing the background buttons..." ¬
- & return into statusLine
- push card
- go to holdMyPlace
- put statusLine after card field "statusField"
- scrollField
- unlock screen
- lock screen
- pop card
- repeat with i = 1 to number of background buttons
- put the ID of background button i into theTargetButton
- parseBkgdButton
- end repeat
- write return & " -> 'Active' Cards" & return to file theTextFile
- parseCards
- end parseBkgd
-
- on parseBkgdFld
- global theTextFile, theScript, theLeadSpace, theTargetField
- put "background field ID " & theTargetField into theField
- write " - Bkgd Fld #" & the number of theField ¬
- & return to file theTextFile
- write " - Properties:" & return to file theTextFile
- write " id:" & theTargetField ¬
- & " name:" & the short name of theField ¬
- & return to file theTextFile
- write " textFont:" & the textFont of theField ¬
- & " textSize:" & the textSize of theField ¬
- & " textStyle:" & the textStyle of theField ¬
- & return to file theTextFile
- write " visible:" & the visible of theField ¬
- & " lockText:" & the lockText of theField ¬
- & " dontSearch:" & the dontSearch of theField ¬
- & return to file theTextFile
- write " textAlign:" & the textAlign of theField ¬
- & " dontWrap:" & the dontWrap of theField ¬
- & return to file theTextFile
- write " textHeight:" & the textHeight of theField ¬
- & " fixedLineHeight:" & the fixedLineHeight of theField ¬
- & return to file theTextFile
- write " style:" & the style of theField ¬
- & " showLines:" & the showLines of theField ¬
- & return to file theTextFile
- write " autoTab:" & the autoTab of theField ¬
- & " wideMargins:" & the wideMargins of theField ¬
- & return to file theTextFile
- write " top:" & the top of theField ¬
- & " left:" & the left of theField ¬
- & " right:" & the right of theField ¬
- & " bottom:" & the bottom of theField ¬
- to file theTextFile
- write return & " - Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put " " into theLeadSpace
- put the script of theField into theScript
- if theScript = empty then
- write " -none-" & return to file theTextFile
- else
- put " " into theLeadSpace
- parseScript
- end if
- end parseBkgdFld
-
- on parseBkgdButton
- global theTextFile, theScript, theLeadSpace, theTargetButton
- put " background button ID " & theTargetButton into theButton
- write " - Bkgd Button #" & the number of theButton ¬
- & return to file theTextFile
- write " - Properties:" & return to file theTextFile
- write " id:" & theTargetButton ¬
- & " name:" & the short name of theButton ¬
- & return to file theTextFile
- write " textFont:" & the textFont of theButton ¬
- & " textSize:" & the textSize of theButton ¬
- & " textStyle:" & the textStyle of theButton ¬
- & return to file theTextFile
- write " visible:" & the visible of theButton ¬
- & " style:" & the style of theButton ¬
- & " showName:" & the showName of theButton ¬
- & return to file theTextFile
- write " hilite:" & the hilite of theButton ¬
- & " icon:" & the icon of theButton ¬
- & return to file theTextFile
- write " sharedHilite:" & the sharedHilite of theButton ¬
- & " autoHilite:" & the autoHilite of theButton ¬
- & return to file theTextFile
- write " top:" & the top of theButton ¬
- & " left:" & the left of theButton ¬
- & " right:" & the right of theButton ¬
- & " bottom:" & the bottom of theButton ¬
- to file theTextFile
- write return & " - Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put " " into theLeadSpace
- put the script of theButton into theScript
- if theScript = empty then
- write " -none-" & return to file theTextFile
- else
- put " " into theLeadSpace
- parseScript
- end if
- end parseBkgdButton
-
- on parseCards
- global theTextFile, theTextDump, theScript, theLeadSpace, ¬
- theTargetField, theTargetButton, holdMyPlace
- put " scanning for card level fields/buttons/scripts..." ¬
- & return into statusLine
- push card
- go to holdMyPlace
- put statusLine after card field "statusField"
- scrollField
- unlock screen
- lock screen
- pop card
- go to last card of this background
- repeat for number of cards in this background
- go to next card in this background
- if the number of card buttons + the number of card fields ¬
- + the number of characters in the script of this card = 0 then
- next repeat
- else
- write " - Card #: " & the number of this card ¬
- & return to file theTextFile
- repeat with i = 1 to number of card fields
- put the ID of card field i into theTargetField
- parseCardFld
- end repeat
- repeat with i = 1 to number of card buttons
- put the ID of card button i into theTargetButton
- parseCardButton
- end repeat
- end if
- end repeat
- end parseCards
-
- on parseScript
- global theTextFile, theTextDump, theScript, theLeadSpace
- repeat with i = 1 to number of lines in theScript
- if theTextDump then
- write theLeadSpace & line i of theScript ¬
- & return to file theTextFile
- else
- if word 1 of line i of theScript = "on" or ¬
- word 1 of line i of theScript = "function" then
- write theLeadSpace & line i of theScript ¬
- & return to file theTextFile
- end if
- end if
- end repeat
- end parseScript
-
- on parseCardFld
- global theTextFile, theScript, theLeadSpace, theTargetField
- put "card field ID " & theTargetField into theField
- write " - Card Fld #" & the number of theField ¬
- & return to file theTextFile
- write " - Properties:" & return to file theTextFile
- write " id:" & theTargetField ¬
- & " name:" & the short name of theField ¬
- & return to file theTextFile
- write " textFont:" & the textFont of theField ¬
- & " textSize:" & the textSize of theField ¬
- & " textStyle:" & the textStyle of theField ¬
- & return to file theTextFile
- write " visible:" & the visible of theField ¬
- & " lockText:" & the lockText of theField ¬
- & " dontSearch:" & the dontSearch of theField ¬
- & return to file theTextFile
- write " textAlign:" & the textAlign of theField ¬
- & " dontWrap:" & the dontWrap of theField ¬
- & return to file theTextFile
- write " textHeight:" & the textHeight of theField ¬
- & " fixedLineHeight:" & the fixedLineHeight of theField ¬
- & return to file theTextFile
- write " style:" & the style of theField ¬
- & " showLines:" & the showLines of theField ¬
- & return to file theTextFile
- write " autoTab:" & the autoTab of theField ¬
- & " wideMargins:" & the wideMargins of theField ¬
- & return to file theTextFile
- write " top:" & the top of theField ¬
- & " left:" & the left of theField ¬
- & " right:" & the right of theField ¬
- & " bottom:" & the bottom of theField ¬
- to file theTextFile
- write return & " - Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put " " into theLeadSpace
- put the script of theField into theScript
- if theScript = empty then
- write " -none-" & return to file theTextFile
- else
- put " " into theLeadSpace
- parseScript
- end if
- end parseCardFld
-
- on parseCardButton
- global theTextFile, theScript, theLeadSpace, theTargetButton
- put " card button ID " & theTargetButton into theButton
- write " - Card Button #" & the number of theButton ¬
- & return to file theTextFile
- write " - Properties:" & return to file theTextFile
- write " id:" & theTargetButton ¬
- & " name:" & the short name of theButton ¬
- & return to file theTextFile
- write " textFont:" & the textFont of theButton ¬
- & " textSize:" & the textSize of theButton ¬
- & " textStyle:" & the textStyle of theButton ¬
- & return to file theTextFile
- write " visible:" & the visible of theButton ¬
- & " style:" & the style of theButton ¬
- & " showName:" & the showName of theButton ¬
- & return to file theTextFile
- write " hilite:" & the hilite of theButton ¬
- & " icon:" & the icon of theButton ¬
- & return to file theTextFile
- write " sharedHilite:" & the sharedHilite of theButton ¬
- & " autoHilite:" & the autoHilite of theButton ¬
- & return to file theTextFile
- write " top:" & the top of theButton ¬
- & " left:" & the left of theButton ¬
- & " right:" & the right of theButton ¬
- & " bottom:" & the bottom of theButton ¬
- to file theTextFile
- write return & " - Msg Handlers & Functions:" ¬
- & return to file theTextFile
- put " " into theLeadSpace
- put the script of theButton into theScript
- if theScript = empty then
- write " -none-" & return to file theTextFile
- else
- put " " into theLeadSpace
- parseScript
- end if
- end parseCardButton
-
- on scrollField
- if (the number of lines in card field "statusField" ¬
- * the textHeight of card field "statusField") ¬
- > (the bottom of card field "statusField" ¬
- - the top of card field "statusField") then
- set the scroll of card field "statusField" to ¬
- (the number of lines in card field "statusField" ¬
- * the textHeight of card field "statusField") ¬
- - (the bottom of card field "statusField" ¬
- - the top of card field "statusField")
- end if
- end scrollField</script>
- <background id="2652" file="background_2652.xml" name="" />
- <card id="2871" file="card_2871.xml" marked="false" name="" owner="2652" />
- </stack>
-